<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition>

        <p:dialog id="CliViewEventosDialogId" widgetVar="CliViewEventosDialog" modal="true" resizable="false" appendTo="@(body)" header="Evento" width="50%">
            <h:form id="CliViewEventosDialogForm">
                <h:panelGroup>
                    <p:commandButton value="#{bundle.Close}" onclick="TbInstViewDialog.hide()"/>
                    <br /><br />
                    <p:dataTable id="datalistEvento" emptyMessage="Nenhum registro localizado"
                                 value="#{sigifEventosintController.items}" 
                                 var="itemEvento"
                                 selectionMode="single" 
                                 selection="#{sigifEventosintController.selected}"
                                 paginator="true"
                                 rowKey="#{itemEvento.ideventosint}"
                                 rows="10"
                                 paginatorPosition="bottom"
                                 rowsPerPageTemplate="10,20,30,40,50" >      
                        <f:facet name="header">
                            <p:outputPanel>
                            </p:outputPanel>
                        </f:facet>               
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="Nome"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.eventointerno}"/>
                        </p:column>                 
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_desObjetivoEvento}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.desObjetivoEvento}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_desObs}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.desObs}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_datIniVig}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.datIniVig}">
                                <f:convertDateTime pattern="dd/MM/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_datFimVig}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.datFimVig}">
                                <f:convertDateTime pattern="dd/MM/yyyy" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_horIni}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.horIni}">
                                <f:convertDateTime pattern="HH:mm:ss" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_horFim}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.horFim}">
                                <f:convertDateTime pattern="HH:mm:ss" />
                            </h:outputText>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_desLocal}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.desLocal}"/>
                        </p:column>
                        <p:column>
                            <f:facet name="header">
                                <h:outputText value="#{bundle.ListSigifEventosintTitle_desCidade}"/>
                            </f:facet>
                            <h:outputText value="#{itemEvento.desCidade}"/>
                        </p:column>                          
                        <f:facet name="footer">
                        </f:facet>                       
                    </p:dataTable>
                    <p:commandButton value="#{bundle.Close}" onclick="TbInstViewDialog.hide()"/>
                </h:panelGroup>
            </h:form>
        </p:dialog>

    </ui:composition>
</html>
